package com.gdpu.liou.symphonyserver.common.utils;


import java.util.List;

/**
 *  分页辅助工具类
 */
public class PagingUtil {

    /**
     * 每页数据数量
     */
    private Integer pageSize;
    /**
     * 数据总数
     */
    private Integer totalCount;
    /**
     * 总页数
     */
    private Integer pageCount;
    /**
     * 当前页
     */
    private Integer currentPage;
    /**
     * 当前页数据集合
     */
    private List<?> data;

    public PagingUtil() {
    }

    public PagingUtil(Integer pageSize, Integer totalCount, Integer pageCount, Integer currentPage, List<?> data) {
        this.pageSize = pageSize;
        this.totalCount = totalCount;
        this.pageCount = pageCount;
        this.currentPage = currentPage;
        this.data = data;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public List<?> getData() {
        return data;
    }

    public void setData(List<?> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "PagingUtil{" +
                "pageSize=" + pageSize +
                ", totalCount=" + totalCount +
                ", pageCount=" + pageCount +
                ", currentPage=" + currentPage +
                ", data=" + data +
                '}';
    }
}
